package com.linhai.mybatis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.linhai.mybatis.model.EventLog;
import com.linhai.mybatis.dao.IEventLogDao;
import com.linhai.mybatis.service.IEventLogService;

@Service
public class EventLogService implements IEventLogService{
	
	@Autowired
    private IEventLogDao dao;
	
	@Override
	public int insertEventLog(EventLog entity) {
		return dao.insertEventLog(entity);
	}

	@Override
	public void deleteEventLog(int id) {
		dao.deleteEventLog(id);
	}

	@Override
	public void updateEventLog(EventLog entity) {
		dao.updateEventLog(entity);
	}

	@Override
	public EventLog findEventLogByID(int id) {
		return dao.findEventLogByID(id);
	}

	@Override
	public List<EventLog> findEventLogsByEventName(String eventName) {
		return dao.findEventLogsByEventName(eventName);
	}

	@Override
	public List<EventLog> findEventLogsByEventType(String eventType) {
		return dao.findEventLogsByEventType(eventType);
	}
}
